<script>
	$(document).ready(function(){
		
		$('#kd_fakultas').change(function(){
			$('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		});	
	});
</script>

<form id="form1" method="post" style="margin:10px;" enctype="multipart/form-data">
	<input type="hidden" name="kd_mahasiswa" id="kd_mahasiswa" value="<?=$kd_mahasiswa?>">
	<div class="fitem" >
		<label style="width:100px">Tahun Angkatan </label>:
		<input name="thn_angkatan" size="15" required="true" value="<?=$thn_angkatan?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">No Pendaftaran </label>:
		<input name="no_pendaftaran" size="30" required="true" value="<?=$no_pendaftaran?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama </label>:
		<input name="nama" size="30" required="true" value="<?=$nama?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Tempat Lahir </label>:
		<input name="tempat_lahir" size="30" required="true" value="<?=$tempat_lahir?>">
	</div>
	<div class="fitem" >
					<label style="width:100px">Tanggal Lahir</label>:
					<input class="easyui-datebox" name="tgl_lahir" size="13" value="<?=$tgl_lahir?>" id="tgl_efektif" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<div class="fitem" >
		<label style="width:100px">Alamat </label>:
		<input name="alamat" size="50" required="true" value="<?=$alamat?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Telepon Siswa </label>:
		<input name="no_telp" size="50" required="true" value="<?=$no_telp?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Fakultas </label>:
			<select id="kd_fakultas" name="kd_fakultas" style="width:200px;">
					<?=$this->mdl_prosedur->OptionFakultas(array('value'=>$kd_fakultas));?>
			</select>
				<label> </label>
				<label style="width:50px">Prodi  </label>:
			<select id="kd_prodi" name="kd_prodi" style="width:200px;">
					<?=$this->mdl_prosedur->OptionProdi(array('value'=>$kd_prodi, 'kd_fakultas'=>$kd_fakultas));?>
			</select>
	</div>	
	<div class="fitem" >
		<label style="width:100px">Nama Orang Tua </label>:
		<input name="nama_ortu" size="30" required="true" value="<?=$nama_ortu?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Alamat Orang Tua </label>:
		<input name="alamat_ortu" size="50" required="true" value="<?=$alamat_ortu?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Pekerjaan </label>:
		<input name="pekerjaan" size="50" required="true" value="<?=$pekerjaan?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Telepon Orang Tua </label>:
		<input name="telp_ortu" size="50" required="true" value="<?=$telp_ortu?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Universitas Asal</label>:
		<input name="asal_universitas" size="50" required="true" value="<?=$asal_universitas?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Telepon Universitas Asal </label>:
		<input name="telp_asal_universitas" size="50" required="true" value="<?=$telp_asal_universitas?>">
	</div>
	<div class="fitem" >
					<label style="width:100px">Lampiran</label>:
					<input name="userfile" value="file_upload" type="file" size="10">
	</div>
</form>
	

